package com.coolwen.spring.dao;/**
 * Created by CoolWen on 2017/11/17.
 */

import com.coolwen.spring.model.Group;
import org.springframework.stereotype.Repository;

/**
 * @author CoolWen
 * @version 2017-11-17 0:03
 */
@Repository("groupDao")
public class GroupDao extends BaseDao implements IGroupDao {

    @Override
    public void add(Group group) {
        getSession().save(group);
    }

    @Override
    public Group load(int id) {
        return getSession().get(Group.class, id);
    }
}
